export function generateCanvasFingerprint()
{
  const canvas = document.createElement('canvas')
  const ctx = canvas.getContext('2d')

  // 绘制一些内容到 Canvas
  ctx.textBaseline = 'top'
  ctx.font = '14px Arial'
  ctx.fillStyle = '#f60'
  ctx.fillRect(125, 1, 62, 20)
  ctx.fillStyle = '#069'
  ctx.fillText('Hello, World!', 2, 15)
  ctx.fillStyle = 'rgba(102, 204, 0, 0.7)'
  ctx.fillText('Hello, World!', 4, 17)

  // 将 Canvas 内容转换为 Base64 字符串
  return canvas.toDataURL()
}
